﻿using System;
using System.Web;
using RabbitManage.Code;

namespace RabbitManage.Action
{
    public partial class ShopLogOff : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpCookie cok = Request.Cookies[Constant.CookieName];
            if (cok != null)
            {
                cok.Expires = DateTime.Now.AddDays(-1);
                Response.AppendCookie(cok);
            }

            Response.Redirect(Constant.LogonPage);
        }
    }
}